#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) Huoty, All rights reserved
# Author: Huoty <sudohuoty@163.com>
# CreateTime: 2021-08-12 23:48:38

from __future__ import print_function

import os
import threading
import multiprocessing


l = threading.local()
l.x = 'a'

def f():
    print(os.getpid(), getattr(l, 'x', 'b'))


#multiprocessing.Process(target=f).start()
threading.Thread(target=f).start()
f()
